package com.xd.springboot.controller;

import com.xd.springboot.annotation.UnInterceptor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/interceptor")
public class InterceptorController {

    @RequestMapping("/test")
    public  String test()
    {
        return "hello";
    }

    @UnInterceptor
    @RequestMapping("/test2")
    @ResponseBody
    public  String test2()
    {
        return "unInterceptor";
    }
}
